package com.sdcs.ui;


import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.sdcs.R;
import com.sdcs.model.Homework;
import com.sdcs.model.Resource;


public class HomeworkActivity extends Activity {
	private Homework homework ;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.zuoye_info);
		
        //获取上一个activity传过来的参数值
        homework = (Homework) getIntent().getSerializableExtra("object");

		TextView tv_name = (TextView) this.findViewById(R.id.name);
		tv_name.setText(homework.getHomework_name()) ;

		TextView add_date = (TextView) this.findViewById(R.id.add_date);
		add_date.setText( "发布时间: " + homework.getHomework_date()) ;
		 
		TextView biaoqian = (TextView) this.findViewById(R.id.biaoqian);
		biaoqian.setText(  " 描述: " + homework.getHomework_describe()) ;

		
	}
	
	
}
